Installing from a Custom YUM Repository



Once you have a custom YUM Repository created (Creating a YUM Repository) then you must do the following to allow installations to take place from that repo.
This walkthrough will also use keys generated from this page (Creating a GPG Key) and keys files created from this page (Signing RPM Packages)

  1. The YUM Repository previously created (/var/www/html/MyRepo)
  2. Navigate to /etc/yum.repos.d
  3. Copy an existing file in that directory and rename it: MyRepo.repo
  4. Edit the new MyRepo.repo file and locate the line that starts with: gpgkey=file...
  5. Modify this line and change the file location to the location of the file from step 3 on this Page
  6. Attempt to install from the MyRepo repository using: yum install <package-name>